package com.itheima.generics;

public class Test1 {
    public static void main(String[] args) {
        MyArrayList<Integer> mal = new MyArrayList<>();
        mal.add(123);
        mal.add(456);
        mal.add(789);

        int num = mal.get(1);
        System.out.println(num);

        System.out.println(mal);
    }
}
